<?php
include("include/haut.php");
$news = getNews();
?>
<div id="colonne_gauche">


	<div id="partenaire">
		<h3>Partenaire:</h3>
	 	<a href="http://www.sciences.u-psud.fr/fr/index.html"><img src="http://www.u-psud.fr/skins/UPSud/resources/img/logoweb_psud.png" name="usud"/></aQS>
	</div>

</div>

<div id="twitter">
	<a class="twitter-timeline"  href="https://twitter.com/TestIO2"  data-widget-id="315235239574241281">Tweets de @TestIO2</a>
	<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>

<div id="corps">

	<h1>News</h1>

<div id="bloc_news">
			<?php
				while($nouvelle= mysql_fetch_array($news)) {
					?>
	<div id="news">
		<p>
		<a href="voir_news.php?id=<?php echo $nouvelle['id']; ?>"><h2>
			<?php echo $nouvelle['titre']; ?></h2></a>
			<article>
			<?php echo $nouvelle['news']; ?>
		 <br/> <br/>
		 <hr />
		<div id="news_gauche"> <i>le <?php echo date('d/m/Y', $nouvelle['date']);?> </i> à <i><?php echo date('H:i' , $nouvelle['date']); ?></i> par <i><?php echo getPseudoID($nouvelle['auteur']); ?></i></div>
		<div id="news_droite"><i>(<?php echo countComment($nouvelle['id']); ?>) commentaire(s)</i> <a href="voir_news.php?id=<?php echo $nouvelle['id']."#newsc"; ?>">Ajouter un commentaire !</a></div>
		</p>
	</div>

</article>
		<?php 
			}
		?>

<br />

</p>
	
</div>
</div>


<?php
include("include/bas.php");
?>